Repository navigation
feat(fleet-queue): creation outbox pilot — durable enqueue, paced verified drainer (#3706) - #8198
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
0b5daf7 to
c567598
Compare
Creation outbox — bounded pilot for #3706
Task 13263 (queue repo-health-code-pilot, lane code-y). Implements the bounded creation-outbox pilot Drew approved on 2026-11-04 per the task-8938 design delta on #3706. Fleet-wide rollout is explicitly out of scope.
What lands
crates/fleet-queue/src/creation_outbox.rs(new) — the pure core: payload hash (SHA-256 over canonical JSON), dedupe/conflict semantics, backoff (Retry-After wins; 30s base, 1h cap, jitter), circuit breaker (3 consecutive rate limits → 300s open), pacing constants (2s gap, 300/hour budget), body marker, metrics. The four acceptance trials run here as oracle-named tests against a fake creator.turso_queue.rs— storage + broker API:creation_outboxtable in the fleet-queue Turso DB (ensure_schema;UNIQUE(repo, dedup_key); due index) plus the persisted circuit row; verbs/outbox-enqueue,/outbox-claim,/outbox-resolve,/outbox-list,/outbox-metrics. An expired lease is claimed asuncertain— a crashed drainer's create may have landed, so it reconciles by marker before any re-create.donewithout a read-back-verified number/URL is refused.client.rs—fleet queue outbox enqueue|list|metrics|claim|resolve|drain. The serial drainer submits throughghwith the hidden marker<!-- fleet-outbox:<id> -->in the body and marks done only after read-back verifies marker + number. Ambiguous creates gouncertain, never blind-retry.doc/fleet/creation-outbox.md— pilot doc: rules, the one-producer wiring (new-issue-creator-code-a), activation order, and trial status.Trials (fake creator, in-tree)
cargo test -p fleet-queue creation_outbox— 13 tests, all passing:Plus dedupe replay/conflict, read-back-failure → uncertain, backoff growth/cap, metrics depth/oldest-age, SHA-256 FIPS vectors.
Verification
cargo test -p fleet-queue --all-features: 162 + 2 passed.cargo test --workspace(pkgs/fleet): all suites pass.cargo fmt -p fleet-queueapplied to the touched files only (pre-existing fmt drift in unrelated files left alone).Not in this PR (follow-on, enqueued separately)
Refs #3706 · task 13263
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.